package cn.edu.thsis.service;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import cn.edu.thsis.pojo.User;
import cn.edu.thsis.pojo.student;
import cn.edu.thsis.pojo.teacher;
import cn.edu.thsis.pojo.thsis;

public interface UserService {
	/**
	 * @Title:checkUserLoginService
	 * @Description:校验用户登录
	 * @param:@param uname 用户名
	 * @param:@param pwd 密码
	 * @return:User 返回查询到的用户信息
	 * @throws SQLException 
	 */
	User checkUserLoginService(String uid,String pwd,String type) throws SQLException;
	student findStuService(String uid,String type) throws SQLException;
	teacher fidTeaService(String uid,String type) throws SQLException;
 //修改用户密码
	int userChangePwdService(String newPwd, String uid, String type) throws SQLException;
	//获取教师信息
	List<teacher> teaShowService() throws SQLException;
	//添加老师信息
	int addteaService(teacher teahr);
	//添加学生信息
	int addstuService(student stud);
	//获取学生信息	
	List<student> stuShowService() throws SQLException;
	//删除教师信息
	int delteaService(String uid) throws SQLException;
	//删除学生信息
	int delstuService(String uid) throws SQLException;
	//学生预约论题
	int doEnrolService(String thsis_id, String stu_id) throws SQLException;
	//得到已预约本论题学生列表
	List<student> doAcceptService(String thsis_id) throws SQLException;
	//添加论题
	int addthService(thsis the);
	//查看未选题的学生
	List<student> stuthService() throws SQLException;
	//查看未出题的教师
	List<teacher> teathService() throws SQLException;
	
	//教师查看自己的论题
	List<thsis> myService(String uid) throws SQLException;
	//接受学生选择该论题
	int okService(String thsis_id, String stu_id) throws SQLException;
	//拒绝学生选择该论题
	int noService(String thsis_id, String stu_id) throws SQLException;
	//催促学生选题
	int warnService(String id) throws SQLException;
	//催促教师出题
	int warnteaService(String id) throws SQLException;
	//查看所有论题信息
	List<thsis> allthes() throws SQLException;
	
	
}
